package com.chen.spring.cloud.miniapp.api.feign.service;

import com.chen.spring.cloud.miniapp.api.feign.hystrix.CouponServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "spring-cloud-service-coupon",fallback = CouponServiceHystrix.class)
public interface CouponService {

    @RequestMapping(value = "/coupon/myList", method = RequestMethod.GET)
    public String myList(@RequestParam(value = "u_id") Integer u_id,
                         @RequestParam(value = "limit") String limit);
}
